home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / water_ba.swf / scripts / frame_31 / DoAction.as
Text File  |  2007-03-20  |  2KB  |  75 lines

  1. stop();
  2. _root.soundmaster._y = 350;
  3. _root.quitbut._y = 365;
  4. _root.soundmaster.removeMovieClip();
  5. delete base.char1.onEnterFrame;
  6. delete base.enemy1.onEnterFrame;
  7. delete base.enemy2.onEnterFrame;
  8. delete base.enemy3.onEnterFrame;
  9. clearInterval(supint);
  10. clearInterval(_root.time);
  11. clearInterval(pupint);
  12. gametime(2);
  13. clearInterval(_root.gametime);
  14. arrowz.removeMovieClip();
  15. _root.pickedup = true;
  16. if(_root.uitext4 < 5)
  17. {
  18.    base.bird.removeMovieClip();
  19.    base.removeMovieClip();
  20.    mainui.removeMovieClip();
  21.    scoreboard2._x = 300;
  22.    scoreboard2._y = 225;
  23. }
  24. else
  25. {
  26.    base.removeMovieClip();
  27.    mainui.removeMovieClip();
  28.    scoreboard3._x = 300;
  29.    scoreboard3._y = 225;
  30. }
  31. _root.attachMovie("base","base",1,{name:"rest"});
  32. base.attachMovie("grass_blank","grass",2);
  33. _root.attachMovie("ply_but","ply_but",50,{_x:480,_y:427});
  34. stop();
  35. _root.attachMovie("walkers","walkin",4,{_x:-10,_y:460});
  36. walkin.onEnterFrame = function()
  37. {
  38.    if(_root.unlockcredits)
  39.    {
  40.       if(this._y > -60)
  41.       {
  42.          this._x += 1;
  43.          this._y -= 1;
  44.       }
  45.       else
  46.       {
  47.          this.removeMovieClip();
  48.       }
  49.    }
  50. };
  51. _root.attachMovie("gamecredit","credits",20,{_y:600,_x:256});
  52. credits.onEnterFrame = function()
  53. {
  54.    if(_root.unlockcredits)
  55.    {
  56.       if(!this.doneit)
  57.       {
  58.          if(this._y > -75)
  59.          {
  60.             this._y -= 1;
  61.          }
  62.          else
  63.          {
  64.             this.doneit = true;
  65.          }
  66.       }
  67.    }
  68. };
  69. i = 0;
  70. while(i < 10000)
  71. {
  72.    clearInterval(i);
  73.    i++;
  74. }
  75.